dnl Process this file with autoconf to produce a configure script.

AC_INIT(gscm.c)
AC_CONFIG_HEADER(scmconfig.h)

test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_CPP
AC_PROG_RANLIB
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_FUNC_ALLOCA
AC_HEADER_TIME
AC_TYPE_SIGNAL
AC_C_CONST
AC_PROG_CC_C_O
AC_PROG_LEX
AC_PROG_YACC
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h string.h memory.h limits.h time.h sys/types.h sys/select.h sys/time.h sys/timeb.h sys/times.h)

AC_TRY_COMPILE(#include <stdio.h>
,		stdout->_file = 1,
		AC_DEFINE(FILE_FD_FIELD, _file),
		AC_TRY_COMPILE(#include <stdio.h>
,			       stdout->_fileno,
			       AC_DEFINE(FILE_FD_FIELD, _fileno)))



AC_CHECK_LIB(sun,main)
AC_CHECK_LIB(nsl, gethostent)
AC_CHECK_LIB(ucb, bzero)
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(bsd, bzero)
	
dnl a kludge...

AC_SUBST(LIBOBJS)
AC_CHECK_FUNCS(ftime times gethostent)
AC_OUTPUT(Makefile)

dnl Local Variables:
dnl comment-start: "dnl "
dnl comment-end: ""
dnl comment-start-skip: "\\bdnl\\b\\s *"
dnl End:
